package com.sq.partner.manager.dao;

import com.sq.partner.manager.mybatis.model.GatewayAgency;
import com.sq.partner.manager.mybatis.model.GatewayUser;
import com.sq.partner.manager.util.Page;


/**
 * 
 * @author zzguo
 *
 */
public interface IGatewayAgencyDao extends BaseDao{
	
	public Page<GatewayAgency> queryInfoByCriteria(Page<GatewayAgency> page,GatewayUser user) throws Exception;
	
	public boolean addAgencyInfo(GatewayAgency agency) throws Exception;

	public boolean updateAgencyInfo(GatewayAgency agency) throws Exception;

	public boolean deleteAgencyInfo(GatewayAgency agency) throws Exception;

	public GatewayAgency queryAgencyInfoByCode(GatewayAgency agency) throws Exception;
	
	public int checkIsExistFacadeUser(String agencyCode) throws Exception;
	
}
